package org.longgang.bean;

import java.io.Serializable;

/**
 * practical_experience
 * 
 * @author
 */
public class PracticalExperience implements Serializable {
	/**
	 * 实习经验id
	 */
	private Integer experienceid;

	/**
	 * 用户id
	 */
	private Integer userid;

	/**
	 * 实习公司名字
	 */
	private String company;

	/**
	 * 实习职位
	 */
	private String practicalposition;

	/**
	 * 开始时间
	 */
	private String practicalstarttime;

	/**
	 * 结束时间
	 */
	private String practicalendtime;

	/**
	 * 备用
	 */
	private String b1;

	/**
	 * 备用
	 */
	private String b2;

	private static final long serialVersionUID = 1L;

	public Integer getExperienceId() {
		return experienceid;
	}

	public void setExperienceId(Integer experienceid) {
		this.experienceid = experienceid;
	}

	public Integer getUserId() {
		return userid;
	}

	public void setUserId(Integer userid) {
		this.userid = userid;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getPracticalPosition() {
		return practicalposition;
	}

	public void setPracticalPosition(String practicalposition) {
		this.practicalposition = practicalposition;
	}

	public String getPracticalStartTime() {
		return practicalstarttime;
	}

	public void setPracticalStartTime(String practicalstarttime) {
		this.practicalstarttime = practicalstarttime;
	}

	public String getPracticalEndTime() {
		return practicalendtime;
	}

	public void setPracticalEndTime(String practicalendtime) {
		this.practicalendtime = practicalendtime;
	}

	public String getB1() {
		return b1;
	}

	public void setB1(String b1) {
		this.b1 = b1;
	}

	public String getB2() {
		return b2;
	}

	public void setB2(String b2) {
		this.b2 = b2;
	}

	@Override
	public boolean equals(Object that) {
		if (this == that) {
			return true;
		}
		if (that == null) {
			return false;
		}
		if (getClass() != that.getClass()) {
			return false;
		}
		PracticalExperience other = (PracticalExperience) that;
		return (this.getExperienceId() == null ? other.getExperienceId() == null
				: this.getExperienceId().equals(other.getExperienceId()))
				&& (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
				&& (this.getCompany() == null ? other.getCompany() == null
						: this.getCompany().equals(other.getCompany()))
				&& (this.getPracticalPosition() == null ? other.getPracticalPosition() == null
						: this.getPracticalPosition().equals(other.getPracticalPosition()))
				&& (this.getPracticalStartTime() == null ? other.getPracticalStartTime() == null
						: this.getPracticalStartTime().equals(other.getPracticalStartTime()))
				&& (this.getPracticalEndTime() == null ? other.getPracticalEndTime() == null
						: this.getPracticalEndTime().equals(other.getPracticalEndTime()))
				&& (this.getB1() == null ? other.getB1() == null : this.getB1().equals(other.getB1()))
				&& (this.getB2() == null ? other.getB2() == null : this.getB2().equals(other.getB2()));
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((getExperienceId() == null) ? 0 : getExperienceId().hashCode());
		result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
		result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
		result = prime * result + ((getPracticalPosition() == null) ? 0 : getPracticalPosition().hashCode());
		result = prime * result + ((getPracticalStartTime() == null) ? 0 : getPracticalStartTime().hashCode());
		result = prime * result + ((getPracticalEndTime() == null) ? 0 : getPracticalEndTime().hashCode());
		result = prime * result + ((getB1() == null) ? 0 : getB1().hashCode());
		result = prime * result + ((getB2() == null) ? 0 : getB2().hashCode());
		return result;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", experienceid=").append(experienceid);
		sb.append(", userid=").append(userid);
		sb.append(", company=").append(company);
		sb.append(", practicalposition=").append(practicalposition);
		sb.append(", practicalstarttime=").append(practicalstarttime);
		sb.append(", practicalendtime=").append(practicalendtime);
		sb.append(", b1=").append(b1);
		sb.append(", b2=").append(b2);
		sb.append(", serialVersionUID=").append(serialVersionUID);
		sb.append("]");
		return sb.toString();
	}

	public PracticalExperience() {
		super();
	}

	public PracticalExperience(Integer userid) {
		super();
		this.userid = userid;
	}

	public PracticalExperience(Integer userid, String company, String practicalposition, String practicalstarttime,
			String practicalendtime, String b1) {
		super();
		this.userid = userid;
		this.company = company;
		this.practicalposition = practicalposition;
		this.practicalstarttime = practicalstarttime;
		this.practicalendtime = practicalendtime;
		this.b1 = b1;
	}

}